Skip to content

feat(cli): check and safely upgrade installed repository skills - #1112

Merged
XiaoSeS merged 6 commits into
mainfrom
feat/1110-repository-upgrade
Nov 20, 2026
Merged

XiaoSeS merged 6 commits into
mainfrom
feat/1110-repository-upgrade

Conversation

@XiaoSeS

@XiaoSeS XiaoSeS commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds repository update checks and upgrades for already installed skills. Delivered after #1111 and merged into main.

  • Add skillhub repository check <repository-id> and repository upgrade <repository-id> [--check] using one pinned current-member plan and existing per-skill metadata/inventory.
  • Match only installed members from the selected registry and targets. Never automatically add new upstream members or delete unavailable local members.
  • Compare real GitHub hash versions using verified same-source release creation order rather than hash/SemVer lexical order. Preserve conservative handling of legacy records without reliable ordering evidence.
  • Protect local modifications, disabled or unverifiable targets, source identity, shared ownership and CAS baselines. A protected target does not prevent independently safe repository members from upgrading.
  • Report unchanged, upgradeable, blocked, failed and not-attempted outcomes accurately. Preserve completed successes after partial failures.
  • Offer copyable install/check/upgrade commands in the existing inline Web panel. The Web does not infer local installation state. No repository ledger or Suite orchestration.

Validation

  • Independent source and test-design reviews completed, including the CI-discovered protection failure and its regression.
  • Linux: 96 focused CLI tests plus a cross-origin plan rejection check passed; CLI/Web typecheck, lint and build passed; 5 Web component tests passed.
  • Real Docker/MinIO: shared controlled-fixture acceptance covered installation/check/upgrade, hash ordering and content reverts, historical metadata, permission withdrawal and partial failure. A further 31 assertions passed against the final CLI and runtime SHA for disabled/unverifiable targets and independent safe progress.
  • Real CLI execution of the Web-origin commands passed for install/check/upgrade.
  • Ego browser checked navigation, copying, keyboard focus, retry recovery and bounded 390px layout. Screenshots and detailed results remain private.
  • Native Windows focused protection tests passed, including an old-code negative control. The expanded local Windows run passed 27 tests; its 51-member case exceeded the local 30-second fixture timeout. This local timeout is retained as an environment observation. The final-head Linux, macOS and Windows CLI CI jobs have subsequently passed; all required checks and the applicable completed CI jobs have now passed at 9f0bb575816be15e1ceaa339a3c68b63c209692c.

Merged into main as 64c5488eb0f21e4efde4a35ac6473bacf13b4f3f after #1111. Issue #1110 was automatically closed. After retargeting to main, the effective diff hash remained identical to the independently reviewed diff. A real integration merge included both the current main and feature head and produced the same Git tree as the validated runtime. Fifteen additional real Token/CLI assertions passed; final branch rules, CI, privacy and mergeability gates passed before merging.

This work targets the open-source edition. Live GitHub ingestion/scanner-engine acceptance, npm publication, SaaS integration and production deployment are not claimed. The currently published CLI does not yet include the repository commands; validation used the built PR sources. CLI publication and SaaS integration are deferred.

Closes #1110

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
…sitory-upgrade

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

# Conflicts:
#	cli/README.md
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
…sitory-upgrade

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
@XiaoSeS
XiaoSeS marked this pull request as ready for review November 20, 2026 09:03
@XiaoSeS
XiaoSeS changed the base branch from feat/1103-repository-batch-install to main November 20, 2026 09:44
@XiaoSeS
XiaoSeS merged commit 64c5488 into main Nov 20, 2026
59 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(web): add suite-level version drift detection and bulk upgrade guard for GitHub-synced skill suites

1 participant